import { promisify } from "util";
import { resolve as r } from "path";
import { readFile, writeFileSync as wfs } from "fs";
import * as qs from "querystring";
import { name } from "./ex";

promisify(readFile)(r(__dirname, "../package.json"))
  .then(data => {
    data = JSON.parse(data);
    console.log(data.name);
    wfs(r(__dirname, "./name"), String(data.name), "utf8")
  });
console.log(name);
